package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */
@AllArgsConstructor
@Getter
public enum WeightEnum {

    /**
     * 无效值
     */
    NULL(0, "无效值"),

    /**
     * 所有的入库
     */
    KG(1, "KG"),


    /**
     * lb/oz
     */
    LB_OZ(2, "lb/oz");


    @EnumValue
    private Integer weight;

    @JsonValue    //标记响应json值
    private String weightDesc;
}
